package org.lds.hotkey.common.util;

import org.lds.hotkey.common.enums.ErrCodeEnum;
import org.lds.hotkey.common.exception.BusinessException;

public class AssertUtil {
    public static void assertTrue(boolean condition, ErrCodeEnum errCodeEnum) {
        if (!condition) {
            throw new BusinessException(errCodeEnum.getErrCode(), errCodeEnum.getErrMsg());
        }
    }
}
